<!-- 分类授权编辑页面 -->
<extend name="Public/base" />
<block name="body">
<div class="tab-wrap">
    <ul class="tab-nav nav">
        <li><a href="{:U('AuthManager/access',array('group_name'=>I('group_name') ,'group_id'=> I('group_id')))}">操作权限</a></li>
        <li class="current"><a href="javascript:;">数据权限</a></li>
		<li><a href="{:U('AuthManager/user',array('group_name'=>I('group_name') ,'group_id'=> I('group_id')))}">成员授权</a></li>
	    <li class="fr">
		    <select name="group">
			    <volist name="auth_group" id="vo">
				    <option value="{:U('AuthManager/category',array('group_id'=>$vo['id'],'group_name'=>$vo['title']))}" <eq name="vo['id']" value="$this_group['id']">selected</eq> >{$vo.title}</option>
			    </volist>
		    </select>
	    </li>
    </ul>
    <!-- 表格列表 -->
    <div class="tb-unit posr">
        <form class="form-horizontal" action="{:U('AuthManager/category')}" method="post" enctype="application/x-www-form-urlencoded">
			<div class="form-item">
	            <label class="item-label">数据权限<span class="check-tips">设置该角色的用户可以操作的数据的范围</span></label>
	            <div class="controls">
	                <label class="radio"><input type="radio" name="type" value="1">个人<span class="check-tips">只能操作自己和下属的数据</span></label>
	            </div>
	            <div class="controls">
	                <label class="radio"><input type="radio" name="type" value="2">所属部门<span class="check-tips">能操作自己、下属、和自己所属部门的数据</span></label>
	            </div>
	            <div class="controls">
	                <label class="radio"><input type="radio" name="type" value="3">所属部门及下属部门<span class="check-tips">能操作自己、下属和自己所属部门及其子部门的数据</span></label>
	            </div>
	            <div class="controls">
	                <label class="radio"><input type="radio" name="type" value="0">全公司<span class="check-tips">能操作全公司的数据</span></label>
	            </div>
	        </div>
	        <input type="hidden" name="id" value="{$info.id}">
            <div style="margin-top: 10px;">
                <button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </form>
    </div>
</div>
<!-- /表格列表 -->
</block>
<block name="script">
<script type="text/javascript">
	Think.setValue("type", {$info.type|default = 0});
    //导航高亮
    highlight_subnav('{:U('AuthManager/index')}');
</script>
</block>
